package com.liuyu.common.framework.common.constant;

/**
 * 支付信息常量类
 *
 * @author: liuyu
 * @date: 2022/8/31 17:37
 * @version: 1
 */
public class PayConstants {
    public class OrderStatus {
        /**
         * 订单生成
         */
        public static final int STATE_INIT = 0;
        /**
         * 支付中
         */
        public static final int STATE_ING = 1;
        /**
         * 支付成功
         */
        public static final int STATE_SUCCESS = 2;
        /**
         * 支付失败
         */
        public static final int STATE_FAIL = 3;
        /**
         * 已撤销
         */
        public static final int STATE_CANCEL = 4;
        /**
         * 已退款
         */
        public static final int STATE_REFUND = 5;
        /**
         * 订单关闭
         */
        public static final int STATE_CLOSED = 6;

    }

    public class RefundStatus {
        //0-订单生成
        public static final int REFUND_STATE_INIT = 0;
        //1-退款中
        public static final int REFUND_STATE_ING = 1;
        //2-退款成功
        public static final int REFUND_STATE_SUCCESS = 2;
        //3-退款失败
        public static final int REFUND_STATE_FAIL = 3;
        //4-退款关闭
        public static final int REFUND_STATE_CLOSE = 4;

    }
}
